package com.lv.hechuang.utils;

import com.lv.baselibrary.util.Utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class MyTextUtil {

    private static final String TAG = Utils.class.getSimpleName();

    public static final int REQ_PERMISSION_CODE = 0x100;



    //获取性别标识
    public static String getGenderTitle(String gender) {
        //性别
        if (gender.equals("1")) {
            return "他";
        }
        return "她";
    }


    //获取当前时间
    public static String getNowTime() {
        SimpleDateFormat formatter = new SimpleDateFormat("yyyy年MM月dd日   HH:mm:ss");
        Date curDate = new Date(System.currentTimeMillis());
        //获取当前时间
        String str = formatter.format(curDate);
        return str;
    }


}
